home *** CD-ROM | disk | FTP | other *** search
/ Scene Storm / Scene Storm - Volume 1.iso / coding / c / vbcc / machines / amiga68k / libsrc / amigalib / freeievents.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-10-26  |  279 b   |  15 lines

  1. #include <devices/inputevent.h>
  2. #include <clib/exec_protos.h>
  3.  
  4. void FreeIEvents(volatile struct InputEvent *events)
  5. {
  6.   struct InputEvent *next;
  7.  
  8.   while(events!=NULL)
  9.   {
  10.     next=events->ie_NextEvent;
  11.     FreeMem((APTR)events,sizeof(struct InputEvent));
  12.     events=next;
  13.   }
  14. }
  15.